package cn.edu.sdjzu.xg.bysj.domain;

import java.io.Serializable;

public final class ApplicationForSupervisor implements
        Comparable<ApplicationForSupervisor>, Serializable {
    //本类不需要id
    // private Integer id;
    //目标导师
    private Teacher teacher;
    //志愿顺序
    private int priority;
    //自我介绍
    private String selfIntroduction;
    //填写志愿的学生
    private Student student;
    //年份
    private int year;

    public ApplicationForSupervisor() {
        super();
    }


    public static void main(String[] args) {
//		GraduateProject g1 = new GraduateProject();
//		GraduateProject g2 = new GraduateProject();
//		System.out.println(g1);
//		System.out.println(g2);

    }

//    public Integer getId() {
//        return id;
//    }
//
//    public void setId(Integer id) {
//        this.id = id;
//    }


    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public int compareTo(ApplicationForSupervisor o) {
        // TODO Auto-generated method stub
        return this.priority - o.priority;
    }

    /**
     * Constructs a <code>String</code> with all attributes
     * in name = value format.
     *
     * @return a <code>String</code> representation
     * of this object.
     */
    @Override
    public String toString() {
        return "ApplicationForSupervisor{" +
                "teacher=" + teacher +
                ", priority=" + priority +
                ", selfIntroduction='" + selfIntroduction + '\'' +
                ", student=" + student +
                ", year=" + year +
                '}';
    }
}
